package com.asiainfo.www.pojo;

/**
 * @author loso
 */
public class MapFile {
    private String origName;
    private String upName;
    private String dnName;
    private String mdTime;
    private String mdDelay;
    private String sheetCnt;
    private String upTime;

    public String output(){
        return "orig_name:" +origName+
                ";up_name:" +upName +
                ";dn_name:" +dnName +
                ";md_time:" +mdTime +
                ";md_delay:" +mdDelay +
                ";sheet_cnt:" +sheetCnt +
                ";up_time:" +upTime +
                "";
    }

    @Override
    public String toString() {
        return origName + "," + upName + "," +dnName + "," +mdTime + "," +mdDelay + "," + sheetCnt + "," +upTime;
    }

    public MapFile(String[] strings){
    this.origName = strings[0];
    this.upName   = strings[1];
    this.dnName   = strings[2];
    this.mdTime   = strings[3];
    this.mdDelay  = strings[4];
    this.sheetCnt = strings[5];
    this.upTime   = strings[6];

    }

    public MapFile(String origName, String upName, String dnName, String mdTime, String mdDelay, String sheetCnt, String upTime) {
        this.origName   = origName;
        this.upName     = upName;
        this.dnName     = dnName;
        this.mdTime     = mdTime;
        this.mdDelay    = mdDelay;
        this.sheetCnt   = sheetCnt;
        this.upTime     = upTime;
    }



    public String getOrigName() {
        return origName;
    }

    public void setOrigName(String origName) {
        this.origName = origName;
    }

    public String getUpName() {
        return upName;
    }

    public void setUpName(String upName) {
        this.upName = upName;
    }

    public String getDnName() {
        return dnName;
    }

    public void setDnName(String dnName) {
        this.dnName = dnName;
    }

    public String getMdTime() {
        return mdTime;
    }

    public void setMdTime(String mdTime) {
        this.mdTime = mdTime;
    }

    public String getMdDelay() {
        return mdDelay;
    }

    public void setMdDelay(String mdDelay) {
        this.mdDelay = mdDelay;
    }

    public String getSheetCnt() {
        return sheetCnt;
    }

    public void setSheetCnt(String sheetCnt) {
        this.sheetCnt = sheetCnt;
    }

    public String getUpTime() {
        return upTime;
    }

    public void setUpTime(String upTime) {
        this.upTime = upTime;
    }
}
